<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var age = 10
        age++;//11 age = age + 1
        console.log(age);
        //1.前后置单独单独使用 结果是一样的
        //2.后置递增 先返回原值 后自加
        var num = 10
        console.log(num++ + 10);//20 原值是10 + 10 = 20
        console.log(num + 10);//21 原值递增自加1 所以num=11 + 10 = 21
    </script>
</head>
<body>
    
</body>
</html>